package org.unei.common.monitor;

public class MethodPerformance {
	private long begin;
	private long end;
	private String serviceMethod;
	public MethodPerformance(String serviceMethod){
		this.serviceMethod=serviceMethod;
		this.begin=System.currentTimeMillis();
	}
	
	public void printPerformace(){
		end=System.currentTimeMillis();
		long elapse=end-begin;
		System.out.println(serviceMethod+":"+elapse);
	}
}	
